<template>
	<view>
		<u-navbar back-icon-color="#000000" :title="title" :border-bottom="false" title-color="#000000" :background="background"></u-navbar>
		<view class="top"></view>
		<view class="content">
			<view class="up">
				<view class="list a2">
					<view class="head">
						<view class="number">
							2
						</view>
						<image src="../../../static/image/head.png" mode=""></image>
					</view>
					<view class="name">
						李**
					</view>
					<view class="text">
						贡献值100w
					</view>
				</view>
				<view class="list a1">
					<view class="head">
						<view class="number">
							1
						</view>
						<image src="../../../static/image/head.png" mode=""></image>
					</view>
					<view class="name">
						李**
					</view>
					<view class="text">
						贡献值100w
					</view>
				</view>
				<view class="list a3">
					<view class="head">
						<view class="number">
							3
						</view>
						<image src="../../../static/image/head.png" mode=""></image>
					</view>
					<view class="name">
						李**
					</view>

					<view class="text">
						贡献值100w
					</view>
				</view>
			</view>
			<view class="down">
				<view class="list" v-for="(item,index) in 10" :key="index">
					<view class="number">
						{{index+4}}
					</view>
					<view class="head">
						<image src="../../../static/image/head.png" mode=""></image>
					</view>
					<view class="name">
						挖掘机
					</view>
					<view class="text">
						贡献度100W
					</view>
				</view>
				<view class="list my">
					<view class="number">
						22
					</view>
					<view class="head">
						<image src="../../../static/image/head.png" mode=""></image>
					</view>
					<view class="name">
						挖掘机
					</view>
					<view class="text">
						贡献度10W
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	var than;
	export default {
		data() {
			return {
				background: {
					'background': 'transparent'
				},
				title: "排行榜",
			}
		},
		onLoad(option) {
			than = this;
		},
		methods: {

		}
	}
</script>

<style lang="less">
	.top {
		position: fixed;
		top: 0;
		background-image: url(../static/c1.png);
		background-size: 100% 100%;
		width: 100%;
		height: 850rpx;
	}

	.content {
		width: 100%;
		z-index: 1;
		/* #ifdef APP-PLUS */
		margin-top: calc(300rpx - var(--status-bar-height));
		/* #endif */
		/* #ifdef H5 */
		margin-top: 300rpx;

		/* #endif */
		.up {
			display: flex;
			justify-content: center;
			position: relative;

			.list {
				width: 226rpx;
				height: 336rpx;
				border-radius: 10rpx;
				text-align: center;

				.head {
					margin: 32rpx auto 0;
					position: relative;
					width: 124rpx;
					height: 124rpx;
					border-radius: 50%;
					display: flex;
					align-items: center;
					justify-content: center;

					.number {
						position: absolute;
						z-index: 10;
						display: flex;
						align-items: center;
						justify-content: center;
						bottom: -10rpx;
						width: 30rpx;
						height: 30rpx;
						border-radius: 50%;
						font-size: 23rpx;
						font-family: DINCond-Black;
						font-weight: 400;
					}

					image {
						width: 120rpx;
						height: 120rpx;
					}
				}

				.name {
					margin-top: 25rpx;
					font-size: 28rpx;
					font-family: PingFang SC;
					font-weight: bold;
					color: #222222;
				}

				.text {
					margin-top: 15rpx;
					font-size: 26rpx;
					font-family: PingFang SC;
					font-weight: bold;
					color: #666678;
				}
			}


			.a1 {
				background: linear-gradient(0deg, #FFF1F1, #FFFFFF);

				.head {
					.number {
						background: #222222;
						color: #BF8E4D;
					}

					background: #E7C496;
				}
				.name{
					margin-top: 65rpx;
				}
			}

			.a2 {
				margin-top: 45rpx;
				background: linear-gradient(0deg, #F1F7FF, #FFFFFF);

				.head {
					.number {
						background: #EEEEEE;
						color: #4D5272;
					}

					background: #DCDCDC;
				}
			}

			.a3 {
				margin-top: 45rpx;
				background: linear-gradient(0deg, #FEF1FF, #FFFFFF);

				.head {
					.number {
						background: #F2D6C6;
						color: #8D3E18;
					}

					background: #D9A990;
				}
			}
		}

		.down {
			border-radius: 70rpx 0rpx 0rpx 0rpx;
			background: #FFFFFF;
			z-index: 10;
			position: relative;
			margin-top: -50rpx;

			.my {
				position: fixed;
				bottom: 0;
				width: 100%;
				z-index: 20;
				background: #E5EDFC;

				.number {
					color: #C61F19 !important;
				}
			}

			.list {
				height: 117rpx;
				display: flex;
				align-items: center;

				.number {
					font-size: 36rpx;
					font-family: DIN Black;
					font-weight: 400;
					color: #A3A6B7;
					width: 110rpx;
					text-align: center;
				}

				.head {
					margin-right: 24rpx;
					border-radius: 50%;

					image {
						border-radius: 50%;
						width: 78rpx;
						height: 78rpx;
					}
				}

				.name {
					font-size: 28rpx;
					font-family: PingFang SC;
					font-weight: bold;
					color: #222222;
				}

				.text {
					margin-left: auto;
					font-size: 26rpx;
					font-family: PingFang SC;
					font-weight: bold;
					color: #666666;
					margin-right: 47rpx;
				}

			}
		}
	}
</style>
